package com.feng;

import com.feng.common.boot.BannerTitle;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer;

@EnableEurekaServer//表示这是一个注册中心项目
@SpringBootApplication
public class EurekaServerApplication {

	public static void main(String[] args) {
//		SpringApplication.run(EurekaServerApplication.class, args);
// 		重写banner
		new SpringApplicationBuilder(EurekaServerApplication.class)
				.banner(new BannerTitle("Eureka Service Manager Register"))
				.logStartupInfo(true)
				.run(args);
	}

}
